package edu.bit.water.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import edu.bit.water.dto.DateUtils;

import java.util.Date;

public class Roles {
    private int id;                    //序号
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date create_at;        //统计时间
    private String createdAt;
    private String roleName;        //企业名称
    private String note;       //备注
    private String companyId;//所属公司id

    public void setCompanyId(String companyId) {this.companyId = companyId;}
    public String getCompanyId() {return this.companyId;}

    public void changeTime() {
        this.createdAt = DateUtils.parseTimeZone(this.createdAt);
    }

    public String getCreatedAt() {return this.createdAt;}

    public void setCreatedAt(String time) {this.createdAt = time;}

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Date getCreate_at() {
        return create_at;
    }

    public void setCreate_at(Date create_at) {
        this.create_at = create_at;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }
}